/**
 *  @file SDLImageRepresentation.cpp
 *
 *  @date 25-nov-2009
 *  @author Ives van der Flaas
 */

#include <SDL.h>
#include <SDL_image.h>
#include <cassert>
#include "SDLResourceManager.h"
#include "SDLImageRepresentation.h"
#include "SDLSurfaceDeleter.h"


namespace si_sdl
{

SDLImageRepresentation::SDLImageRepresentation(std::string filename)
{
	assert(filename.length() > 0);

	fMe = SDLResourceManager::get().getImageAlpha(filename);
	fResized = SDLResourceManager::get().getImageAlpha(filename);


}

SDLImageRepresentation::SDLImageRepresentation(std::string filename, Color key)
{
	assert(filename.length() > 0);

	fMe = SDLResourceManager::get().getImage(filename, key);
	fResized = SDLResourceManager::get().getImage(filename, key);

}
SDLImageRepresentation::~SDLImageRepresentation()
{
	// TODO Auto-generated destructor stub
}


}
